package com.example.teachingevaluationsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 评价
 *
 * @author lp
 * @since 2022-04-05
 */
@Getter
@Setter
@TableName("student_evaluate")
@ApiModel(value = "StudentEvaluate对象", description = "评价")
public class StudentEvaluate implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("课程id")
  @TableField("course_id")
  private Long courseId;

  @ApiModelProperty("学生Id")
  @TableField("student_id")
  private Long studentId;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;

  @ApiModelProperty("计划中题目id")
  @TableField("topic_id")
  private Long topicId;

  @ApiModelProperty("计划id")
  @TableField("plan_id")
  private Long planId;

  @ApiModelProperty("分数")
  @TableField("fraction")
  private Integer fraction;
}
